package com.digitalchina.lxnsy.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.PestListVO;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：白彦东
 * 创建时间：2016/12/28 18:10
 * 修改备注：
 * ================================================
 */

public class PestListHolder extends BaseViewHolder<PestListVO> {

    private TextView tvName;


    public PestListHolder(ViewGroup parent) {
        super(parent, R.layout.item_pest_list);
        tvName = $(R.id.tv_name);
    }

    @Override
    public void setData(PestListVO data) {
        super.setData(data);
        tvName.setText(data.getDiseasePestName());
    }

}
